const mongoose = require("./db.js")

// 定义Schema
var UserSchema = mongoose.Schema({
  name: String,
  age: Number,
  status: {
    type: 'number',
    default: 1
  }
})

// 生成model
User = mongoose.model("User", UserSchema, 'user')

module.exports = User